﻿using Core.Context;
using Core.Dtos;
using Core.IServices;
using Core.Messages;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Core.Factories
{
    public class AppContextFactory : IAppContextFactory
    {
        //private readonly IReadDictionaryService dictionaryService;
        //private readonly IReadLocalizationService localizationService;        
        //private readonly IReadCultureService cultureService;

        public AppContextFactory()
        {                
        }

        //public AppContextFactory(IReadDictionaryService dictionaryService, IReadLocalizationService localizationService, IReadCultureService cultureService)
        //{
        //    this.dictionaryService = dictionaryService;
        //    this.localizationService = localizationService;
        //    this.cultureService = cultureService;
        //}

        public IAppContext GetInstance()
        {
            IAppContext appContext = new AppContext();
            //appContext.States = dictionaryService.GetItems(Domain.DictionaryName.ApprovalStates).Value;
            //appContext.Actions = dictionaryService.GetItems(Domain.DictionaryName.ApprovalActions).Value;
            //appContext.Dictionaries = dictionaryService.GetAllItems();
            //appContext.LocaleStrings = localizationService.GetAll();
            //appContext.Cultures = cultureService.GetAll();
            return appContext;
        }        
    }
}
